package com.ruoyi.slope.video.radar.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.video.radar.mapper.RadarMonitoringDataMapper;
import com.ruoyi.slope.video.radar.domain.RadarMonitoringData;
import com.ruoyi.slope.video.radar.service.IRadarMonitoringDataService;

/**
 * 雷达监测数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-28
 */
@Service
public class RadarMonitoringDataServiceImpl implements IRadarMonitoringDataService 
{
    @Autowired
    private RadarMonitoringDataMapper radarMonitoringDataMapper;

    /**
     * 查询雷达监测数据
     * 
     * @param id 雷达监测数据主键
     * @return 雷达监测数据
     */
    @Override
    public RadarMonitoringData selectRadarMonitoringDataById(String id)
    {
        return radarMonitoringDataMapper.selectRadarMonitoringDataById(id);
    }

    /**
     * 查询雷达监测数据列表
     * 
     * @param radarMonitoringData 雷达监测数据
     * @return 雷达监测数据
     */
    @Override
    public List<RadarMonitoringData> selectRadarMonitoringDataList(RadarMonitoringData radarMonitoringData)
    {
        return radarMonitoringDataMapper.selectRadarMonitoringDataList(radarMonitoringData);
    }

    /**
     * 新增雷达监测数据
     * 
     * @param radarMonitoringData 雷达监测数据
     * @return 结果
     */
    @Override
    public int insertRadarMonitoringData(RadarMonitoringData radarMonitoringData)
    {
        radarMonitoringData.setCreateTime(DateUtils.getNowDate());
        return radarMonitoringDataMapper.insertRadarMonitoringData(radarMonitoringData);
    }

    /**
     * 修改雷达监测数据
     * 
     * @param radarMonitoringData 雷达监测数据
     * @return 结果
     */
    @Override
    public int updateRadarMonitoringData(RadarMonitoringData radarMonitoringData)
    {
        radarMonitoringData.setUpdateTime(DateUtils.getNowDate());
        return radarMonitoringDataMapper.updateRadarMonitoringData(radarMonitoringData);
    }

    /**
     * 批量删除雷达监测数据
     * 
     * @param ids 需要删除的雷达监测数据主键
     * @return 结果
     */
    @Override
    public int deleteRadarMonitoringDataByIds(String[] ids)
    {
        return radarMonitoringDataMapper.deleteRadarMonitoringDataByIds(ids);
    }

    /**
     * 删除雷达监测数据信息
     * 
     * @param id 雷达监测数据主键
     * @return 结果
     */
    @Override
    public int deleteRadarMonitoringDataById(String id)
    {
        return radarMonitoringDataMapper.deleteRadarMonitoringDataById(id);
    }
}
